﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
//using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
//using System.Xml.Linq;
using System.Data.SqlClient;

public partial class unidadesmedida_ListaUnidades : System.Web.UI.Page
{
    clsConexion conexion = new clsConexion();
    String strConection = ConfigurationManager.AppSettings["cnfConexion"];
    protected void Page_Load(object sender, EventArgs e)
    {
        String comando = "SELECT unidad_medida,nombre,prefijo,dimension " +
                         "FROM unidad_medida";
        DataSet dt = conexion.fEjecutaQueryDS(comando);
        GridView1.DataSource = dt;
        GridView1.DataBind();
    }
    protected void lnkNuevaUnidad_Click(object sender, EventArgs e)
    {
        Response.Redirect("/guatemala-logistic/unidadesmedida/NuevaUnidad.aspx");
    }

}
